﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace LbangCMS.EFModels
{
    public class Commodity
    {
        //编号
        public int Id { get; set; }
        //名称
        public string Name { get; set; }
        //价格
        public double Price { get; set; }
        //库存
        public int Stock { get; set; }
        //销量
        public int SaleQuantity { get; set; }
        //详细信息
        public string Description { get; set; }
        //状态 0：下架;2:上架
        public int Status { get; set; }
        //分类Id
        public int CategoryId { get; set; }
        //类型Id
        public int TypeId { get; set; }
        //佣金
        public double Commission { get; set; }

        [ForeignKey("CategoryId")]
        public CommodityCategory Category { get; set; }
    }
}